import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'

//业务冲正申请录入查询
export const apiUrlConfigEntryQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessCorrect/bepsBusinessCorrectEntry/search`,
}


//业务冲正申请审核查询
export const apiUrlConfigApproveQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessCorrect/bepsBusinessCorrectApprove/search`,
}


//业务冲正申请查询查询
export const apiUrlConfigQueryQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessCorrect/bepsBusinessCorrectApplyQuery/search`,
}


// 业务冲正申请录入查询条件初始化
export function bepsBusinessCorrectEntryInit() {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessCorrect/bepsBusinessCorrectEntry/init`,
    method: 'get'
  })
}


// 业务冲正申请录入查询明细
export function bepsBusinessCorrectEntryDetail(id,pkgNo) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessCorrect/bepsBusinessCorrectEntry/detail?id=${id}&&pkgNo=${pkgNo}`,
    method: 'get'
  })
}

// 业务冲正申请录入
export function bepsBusinessCorrectEntrySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessCorrect/bepsBusinessCorrectEntry/save`,
    method: 'post',
    data:data
  })
}

// 业务冲正申请审核查询条件初始化
export function bepsBusinessCorrectApproveInit() {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessCorrect/bepsBusinessCorrectApprove/init`,
    method: 'get'
  })
}


// 业务冲正申请审核查询明细
export function bepsBusinessCorrectApproveDetail(id) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessCorrect/bepsBusinessCorrectApprove/detail?id=${id}`,
    method: 'get'
  })
}

// 业务冲正申请审核通过
export function bepsBusinessCorrectApproveApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessCorrect/bepsBusinessCorrectApprove/approve`,
    method: 'post',
    data:data
  })
}

// 业务冲正申请审核拒绝
export function bepsBusinessCorrectApproveReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessCorrect/bepsBusinessCorrectApprove/reject`,
    method: 'post',
    data:data
  })
}

// 业务冲正申请查询条件初始化
export function bepsBusinessCorrectQueryInit() {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessCorrect/bepsBusinessCorrectApplyQuery/init`,
    method: 'get'
  })
}

// 业务冲正申请查询明细
export function bepsBusinessCorrectQueryDetail(id) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessCorrect/bepsBusinessCorrectApplyQuery/detail?id=${id}`,
    method: 'get'
  })
}
